//
//  XMAddressEditViewController.h
//  XMJJ_zml
//
//  Created by 杨何华 on 2025/5/16.
//

#import "XMBaseViewController.h"

NS_ASSUME_NONNULL_BEGIN

@protocol XMAddressEditViewControllerDelegate <NSObject>
@optional
- (void)addressEditController:(id)controller didSaveAddress:(NSDictionary *)address;
@end

@interface XMAddressEditViewController : XMBaseViewController

@property (nonatomic, weak) id<XMAddressEditViewControllerDelegate> delegate;
@property (nonatomic, strong) NSDictionary *addressData; // 编辑时传入的地址数据
@property (nonatomic, assign) BOOL isEditMode; // 是否为编辑模式

- (void)showInViewController:(UIViewController *)viewController animated:(BOOL)animated;
- (void)dismissAnimated:(BOOL)animated;

@end

NS_ASSUME_NONNULL_END
